package com.qing.cheng.mapper;


import com.qing.cheng.dto.QcCourseStateDto;
import com.qing.cheng.entity.QcCourseState;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QcCourseStateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(QcCourseState record);

    int insertSelective(QcCourseState record);

    QcCourseState selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QcCourseState record);

    int updateByPrimaryKey(QcCourseState record);

    List<QcCourseState> listAllByCourseId(Integer courseId);

    List<QcCourseStateDto> getAllStateByCourseId(Integer id);
}